package com.zimmur.app.mocolink.dao;

import com.zimmur.app.mocolink.domain.model.Role;
import com.zimmur.app.mocolink.domain.model.RoleExample;
import com.zimmur.app.mocolink.domain.vo.RoleInfo;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoleMapper {
    int countByExample(RoleExample example);

    int deleteByExample(RoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    List<Role> selectByExample(RoleExample example);

    Role selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    /**
     * 查询所有角色，关联账户ID
     *@Description
     *@param adminId
     *@return 
     *@author zcx
     *@Time 2017年10月31日 下午3:37:53
     */
    List<RoleInfo> selectRoleWithAdminId(@Param("adminId")Integer adminId);
}